//
//  UtilsMacros.h
//  ILGDemo
//
//  Created by zhangtongle-Pro on 2018/6/8.
//  Copyright © 2018年 Happy. All rights reserved.
//

#ifndef UtilsMacros_h
#define UtilsMacros_h

#define kWeakSelf(type) __weak typeof(type)weak##type = type;

#define kHeightForStatusBar [[UIApplication sharedApplication] statusBarFrame].size.height
#define kHeightForNavigationBar self.navigationController.navigationBar.frame.size.height
#define kHeightForStatusBarAndNavigationBar kHeightForStatusBar+kHeightForNavigationBar

//-------------------打印日志-------------------------

//DEBUG模式下打印日志
#ifdef DEBUG
//#define ILGLog(fmt,...) NSLog((@"%s[Line %d]" fmt),__PRETTY_FUNCTION__,__LINE__,##__VA_ARGS__);
#define ILGLog(...)
#else
#define ILGLog(...)
#endif

#endif /* UtilsMacros_h */
